HTMLify

Image Cards.html
Views: 289 | Author: shubh
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Image Cards</title>
    <style>
        body {
            background-color: black;
            background-image: url("BackgroundImage.png");
            background-size: cover;
            background-repeat: no-repeat;
        }

        p {
            color: white;
            font-family: fantasy;
            font-size: 35px;
        }

        .gallery {
            width: 30%;
            display: flex;
            height: 380px;
            gap: 5px;
            margin-top: 5%;
        }

        .gallery img {
            width: 10%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            border: 2px solid white;
            transition: all ease 0.4s;
            cursor: pointer;
            box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        }

        .gallery img:hover {
            width: 100%;
        }
    </style>

</head>

<body>
    <p>Image Cards Transition</p>
    <div class="gallery">
        <img src="Doraemon_Image1.png" alt="Doraemon Image">
        <img src="Doraemon_Image2.png" alt="Doraemon Image">
        <img src="Doraemon_Image3.png" alt="Doraemon Image">
        <img src="Doraemon_Image4.png" alt="Doraemon Image">
        <img src="Doraemon_Image5.png" alt="Doraemon Image">
        <img src="Doraemon_Image6.png" alt="Doraemon Image">
    </div>
</body>

</html>

Comments